package com.ruoyi.web.controller.iot;

import com.ruoyi.common.core.controller.BaseController;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
@RequestMapping("/manholeCover")
public class ManholeCoverController extends BaseController {

    private RestTemplate restTemplate = new RestTemplate();

    private  String url;


    @GetMapping("/getDeviceList")
    public void getDeviceList(){
        HttpHeaders httpHeaders = new HttpHeaders();
        MediaType mediaType = MediaType.parseMediaType("application/json; charset=UTF-8");
        httpHeaders.setContentType(mediaType);
        httpHeaders.add("Accept",MediaType.APPLICATION_JSON.toString());
        restTemplate.postForEntity(url,null,null);
    }
}
